<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="./../template/template.xhtml">

	<ui:define name="content">
		<h:form>
			<div class="FORM_HEADER">Create New Company</div>
			<h:panelGrid columns="2" styleClass="APPLICATION_CONTENT"
				cellpadding="2">
				<h:outputText value="" />
				<h:inputHidden id="id"
					value="#{companyController.companyDTO.companyId}" />

				<p:outputLabel for="name" value="Company Name:" />
				<h:inputText id="name" value="#{companyController.companyDTO.name}"
					required="true" requiredMessage="#{bundle['form.required']}" />

				<p:outputLabel for="website" value="Website:" />
				<h:inputText id="website"
					value="#{companyController.companyDTO.website}" required="true"
					requiredMessage="#{bundle['form.required']}" />

				<p:outputLabel for="email" value="Email:" />
				<h:inputText id="email"
					value="#{companyController.companyDTO.email}" required="true"
					requiredMessage="#{bundle['form.required']}" />

				<h:outputText value="" />
				<p:commandButton value="Save" action="#{companyController.save}"
					ajax="true" />
			</h:panelGrid>
		</h:form>
	</ui:define>

</ui:composition>
</html>